package com.iskyline.demo.springcloud.feign.remote;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * https://www.baidu.com/s?wd=%E9%BB%84%E7%93%9C
 *
 * FIXME：百度这个会报安全检测问题，尚未解决
 */
@FeignClient(name="baidu-client",url="https://www.baidu.com")
public interface BaiDuApi {

    @GetMapping("/s")
    String query(@RequestParam("wd") String wd);

}
